<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>  
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
	response.setContentType("text/html;charset=UTF-8");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    
    <title>请假条列表</title>
  <link rel="stylesheet" href="css/style.css" type="text/css"></link>
  <script type="text/javascript" src="js/win_center.js"></script>
  <script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
  <script type="text/javascript" src="js/hidden.js"></script>
  <script type="text/javascript" src="js/jquery-1.6.js"></script></head>
  <body>
  	<div class="topTitle">
  		<img src="images/main_28.gif"/>&nbsp;所有请假信息
  	</div>
  	<br/>
  	<div id="selectIno">
		<form action="toLeavesCheck" method="post">
			<table>
				<tr>
					<td class="select">
					姓名：
					      <input name="userName" type="text" class="input" size="20"/>
					      请假类别：
					      <select name="type">
					      		  <option value="">请选择类别</option>
					           	  <option>调研</option>
					              <option>会议</option>
					              <option>出国</option>
					              <option>事假</option>
					              <option>病假</option>
					              <option>其它假类</option>
					      </select>
						申请时间： 从
					 	 <input id="d5221" name="startDate" class="Wdate" type="text" onfocus="var d5222=$dp.$('d5222');WdatePicker({onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')}'});checkDate()" readonly="readonly" />
						至<input id="d5222" name="endDate" class="Wdate" type="text" onfocus="WdatePicker({minDate:'#F{$dp.$D(\'d5221\')}'});checkDate()" readonly="readonly"/>
						<input name="Submit" type="submit" class="buttonface" value="  查询  "/>
					</td>
				</tr>
			</table>
		</form>  	
  	</div>
  	<br/>
  	<div id="LeaveList">
  		<%--<table>
			<tr>
				<td nowrap="nowrap" class="td_top">请假人</td>
			    <td nowrap="nowrap" class="td_top">请假类别</td>
			    <td nowrap="nowrap" class="td_top">请假时间</td>
			    <td nowrap="nowrap" class="td_top">信息审核</td>
 			</tr>
 			<s:iterator value="leaves">
 				<tr> 
 					<td class="td_02"><s:property value="employee.userName"/></td>
				    <td class="td_02"><s:property value="type"/></td>
				    <td class="td_02"><s:date name="startDate" format="yyyy-MM-dd"/> 至 <s:date name="endDate" format="yyyy-MM-dd"/></td>
				    <td class="td_02"><a href="#" onclick="javascript:openwindow('toLeaveCheck?id=<s:property value='leaveId'/>','',700,400)">&nbsp;&nbsp;&gt;&gt;&gt; </a></td>
  				</tr>  	
 			</s:iterator>	
  		</table>
  		
  		--%>
  		<center>
  			<s:if test="%{leaves.size()==0}">没有你想查询的数据!</s:if>
  		</center>
  		<s:else>
  			<display:table decorator="org.displaytag.decorator.CheckboxTableDecorator" name="leaves"  requestURI="/toLeavesCheck" class="paging" defaultorder="descending" id="leave" pagesize="5">
  			<display:column property="employee.userName" title="请假人" headerClass="td_top" class="td_02"></display:column>
  			<display:column property="type" title="请假类别"  headerClass="td_top" class="td_02" sortable="true"></display:column>
  			<display:column property="startDate" format="{0,date,yyyy-MM-dd}" title="请假开始时间" headerClass="td_top" class="td_02">
  			</display:column>
  			<display:column property="endDate" format="{0,date,yyyy-MM-dd}" title="请假结束时间" headerClass="td_top" class="td_02">
  			</display:column>
  			<display:column title="信息审核" paramId="id" paramProperty="leaveId" class="td_02" headerClass="td_top">
  				<a href="#" onclick="javascript:openwindow('toLeaveCheck?id=${leave.leaveId}','',700,400)">&nbsp;&nbsp;&gt;&gt;&gt; </a>
  			</display:column>
  			<display:footer media="sort">sad</display:footer>
  			</display:table>
  		</s:else>
  	</div>
  
  </body>
</html>
